/* static/style.css */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

h1, h2 {
    color: #2c3e50;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.card {
    background-color: #fdfdfd;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: none;
}

.button.primary {
    background-color: #4CAF50; /* Green */
    color: white;
}

.button.primary:hover {
    background-color: #45a049;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

th {
    background-color: #f0f0f0;
    color: #555;
    font-weight: 600;
    white-space: nowrap; /* Prevent wrapping for headers */
}

tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

tbody tr:hover {
    background-color: #f1f1f1;
}

.status-pending { background-color: #fffbe6; } /* Light yellow */
.status-success { background-color: #e6ffed; } /* Light green */
.status-failed { background-color: #ffe6e6; }   /* Light red */

.hidden {
    display: none;
}

pre {
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    padding: 10px;
    border-radius: 4px;
    font-family: monospace;
    white-space: pre-wrap; /* Wrap long lines */
    word-wrap: break-word; /* Break long words */
    max-height: 300px; /* Limit height */
    overflow-y: auto; /* Add scroll if content is too long */
    margin-top: 10px;
}

.error-output {
    color: #cc0000;
}

.no-output {
    color: #888;
    font-style: italic;
}

button.toggle-output-btn, button.toggle-error-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    margin-right: 5px;
    transition: background-color 0.2s;
}

button.toggle-error-btn {
    background-color: #dc3545;
}

button.toggle-output-btn:hover {
    background-color: #0056b3;
}

button.toggle-error-btn:hover {
    background-color: #c82333;
}
